package com.itheima.day06;

import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.Calendar;
import java.util.Date;

public class Practice4 {
    public static void main(String[] args) {
       // Integer num= new Integer("35");

        Calendar instance = Calendar.getInstance();

        Date date = new Date();
        instance.setTime(date);
        instance.set(2020,5,20);
        instance.add(Calendar.YEAR,23);
        System.out.println(instance.get(Calendar.YEAR));

        BigDecimal b = new BigDecimal("35");
        BigDecimal l1 = BigDecimal.valueOf(2.3);
        BigDecimal l2 = BigDecimal.valueOf(2.2);
        BigDecimal divide = l1.divide(l2, 2, RoundingMode.HALF_UP);
        System.out.println("l1 = " + divide);
        double v = divide.doubleValue();


    }
}
